/* 强制FloatButton向下展开并覆盖默认定位 - 只针对我们的悬浮导航 */
.floating-navigation .ant-float-btn-group {
  flex-direction: column !important;
  align-items: flex-start !important;
  inset-inline-end: unset !important;
  bottom: unset !important;
  left: 24px !important;
  top: 24px !important;
  transform: scaleY(-1) !important;
  z-index: 2000 !important;
  transition: all 0.3s ease-in-out !important;
}

/* 隐藏状态 - 向左滑出 */
.floating-navigation .ant-float-btn-group.hidden {
  left: -100px !important;
  opacity: 0;
  pointer-events: none;
}

/* 显示状态 - 滑入 */
.floating-navigation .ant-float-btn-group.visible {
  left: 24px !important;
  opacity: 1;
  pointer-events: auto;
}

.floating-navigation .ant-float-btn-group .ant-float-btn {
  transform: scaleY(-1) !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ant-float-btn-group-trigger {
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.ant-float-btn-group-trigger:hover {
  background: linear-gradient(135deg, #40a9ff 0%, #69c0ff 100%);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

.ant-float-btn-group-trigger:active {
  transform: scale(0.95);
}

/* 子按钮样式 */
.ant-float-btn {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #666;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ant-float-btn:hover {
  background: #f0f8ff;
  color: #1890ff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

.ant-float-btn.active {
  background: #e6f7ff;
  color: #1890ff;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.ant-float-btn.active:hover {
  background: #bae7ff;
  transform: scale(1.1);
}

/* 工具提示样式 */
.ant-tooltip {
  z-index: 1001;
}

.ant-tooltip-inner {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  font-size: 12px;
  padding: 4px 8px;
}

/* 强制tooltip在左侧显示 */
.floating-navigation .ant-float-btn .ant-tooltip {
  transform: translateX(-100%) !important;
}

.floating-navigation .ant-float-btn .ant-tooltip-placement-left {
  transform: translateX(-100%) !important;
}

/* 徽章样式 */
.ant-badge-count {
  background: #ff4d4f;
  box-shadow: 0 0 0 1px #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ant-float-btn-group {
    left: 16px !important;
    top: 16px !important;
  }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
  .ant-float-btn {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
  }
  
  .ant-float-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #1890ff;
  }
  
  .ant-float-btn.active {
    background: rgba(24, 144, 255, 0.2);
    color: #1890ff;
  }
}
